import request from '@/utils/request'
export function submit(data) {
  return request({
    url: 'buss/designchangeapply/add',
    method: 'post',
    data
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/designchangeapply/edit',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'buss/designchangeapply/del',
    method: 'post',
    data: ids
  })
}

export function getOne(id) {
  return request.get('buss/designchangeapply/getOne?id='+id)
}

export function audit(data) {
  return request({
    url: 'buss/designchangeapply/audit',
    method: 'post',
    data
  })
}


export function report(data) {
  return request({
    url: 'buss/designchangeapply/report',
    method: 'post',
    data
  })
}

export function getTablePage(data) {
  return request.post('buss/designchangeapply/listPage', data)
}

export function getSceneTentativeList(data) {
  return request.post('buss/designchangeapply/getSceneTentativeList', data)
}

export function getProposeCompany(data) {
  return request.post('buss/designchangeapply/getProposeCompany', data)
}

export function genChangeCode(data) {
  return request.post('buss/designchangeapply/genChangeCode', data)
}

export function genCbhtUserList(data) {
  return request.post('buss/designchangeapply/genCbhtUserList', data)
}

export function genZlaqUserList(data) {
  return request.post('buss/designchangeapply/genZlaqUserList', data)
}

export function downfile(data) {
  return request({
    method: 'post',
    url: 'buss/designchangeapply/downfile',
    data: data,
    responseType: 'blob'
  })
}

export function importExcel(data) {
  return request.post('buss/designchangeapply/importExcel', data)
}

export default {
  submit,
  resubmit,
  getOne,
  del,
  audit,
  report,
  getSceneTentativeList,
  getTablePage,
  getProposeCompany,
  genChangeCode,
  genCbhtUserList,
  genZlaqUserList,
  downfile,
  importExcel,
}
